package pro.shushi.pamirs.hr.core.util;

import pro.shushi.pamirs.meta.annotation.fun.extern.Slf4j;
import pro.shushi.pamirs.meta.api.dto.config.ModelFieldConfig;
import pro.shushi.pamirs.meta.api.session.PamirsSession;
import pro.shushi.pamirs.meta.common.lambda.LambdaUtil;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 自定义模型工具
 */
public class CustomModelUtil {

    public static String getFieldDisplayName(String modelModel,String field ){
        ModelFieldConfig modelFieldConfig = PamirsSession.getContext().getModelField(modelModel, field);
        String fieldName = modelFieldConfig.getDisplayName();
        return fieldName;
    }

}